javascript sort on objects date

46

javascript order array by date -

const sortedActivities = activities.sort((a, b) => b.date - a.date)

Comments

Submit
0 Comments